package main

import (
	"bufio"
	"fmt"
	"strings"
)

func main() {

	reader := strings.NewReader("hello world")

	newReader := bufio.NewReader(reader)

	data, _ := newReader.Peek(5)

	fmt.Println(string(data),newReader.Buffered())
}
